﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Masters/Basic.Master" AutoEventWireup="true" CodeBehind="AuthOperList.aspx.cs" Inherits="PMS.UI.BD.AuthOperList" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
        <script type="text/javascript">
            $(function () {
                var height = $("#divTotal").height();
                var master = $("#master").height();
                var content = parseFloat(height) - parseFloat(master) - 30;
                $("#tbList").css("height", content);
            });
    </script>
    <script type="text/javascript">

        $(function () {
            $("#divAddAuthor").dialog({
                title: '添加授权',
                width: 280,
                height: 180,
                closed: true,
                cache: false,
                toolbar: "#divToolBar",
            });

        })

        $(function () {
            $("#tbList").datagrid({
                url: '/Logic/BD/UserAjax.aspx?method=GetAuthorOperList',
                loadMsg: '数据加载中请稍后……',
                pagination: true,
                rownumbers: true,
                idField: "ID",
                fitColumns: true,
                columns: [[{
                    field: 'ck', checkbox: true, width: 30
                },
                    {
                        field: 'FromUserName', title: '授权人', width: 100, align: "center"
                    },
                    {
                        field: 'ToUserName', title: '被授权人', sortable: true, width: 100, align: "center"
                    }
                    ,
                    {
                        field: 'FillDate', title: '操作时间', sortable: true, width: 150, align: "center"
                    }
                    ,
                    {
                        field: 'Type', title: '状态', sortable: true, width: 120, align: "center", formatter: function (value, row, Index) {
                            return com.getArrayText(StaticCombo.AuthOperType, value);
                        }
                    },
                    {
                        field: 'RevDetailId', title: '操作单号', sortable: true, width: 150, align: "center"
                    }

                ]],
                singleSelect: true,
                pageSize: 20,
                pageList: [ 20, 50, 100],
                striped: true

            }); 
        })


    </script>
    <script>
        function funcSearch() {
            var para = com.serializeSearchArray("form1");
            $("#tbList").datagrid("load", para);

        }
        function funcReload() {
            $("#form1").form("reset");
            var para = com.serializeSearchArray("form1");
            $("#tbList").datagrid("load", para);
        }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
     <div id="divTotal" style="height: 100%; width: 100%">
        <div id="master" class="container_12" style="height: auto">
            <form id="form1">
                <div class="grid_1 sealbl" style="text-align: right;">
                    授权人 :
                </div>
                <div class="grid_2 seaval" style="text-align: left;">
                    <input id="FromUserName" name="FromUserName" data-cp="co" />
                </div>
                <div class="grid_1 sealbl" style="text-align: right;">
                    被授权人 :
                </div>
                <div class="grid_2 seaval" style="text-align: left;">
                    <input id="ToUserName" name="ToUserName" data-cp="co" />
                </div>
                <div class="grid_1 sealbl">
                    操作日期:
                </div>
                <div class="grid_5 seaval">
                    从：
                    <input type="text" id="startFillDate" name="startFillDate" data-cp="str>=" class="easyui-datebox" />
                    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 到:&nbsp;&nbsp;&nbsp;
                    <input type="text" id="endFillDate" name="endFillDate" data-cp="str<=" class="easyui-datebox" />
                </div>
                <div class="clear"></div>
                <div class="grid_1 sealbl">
                    状态:
                </div>
                <div class="grid_2 seaval">
                    <input id="Type" name="Type" class="easyui-combobox" data-options="valueField:'value',textField:'text',data:StaticCombo.AuthOperType,panelHeight:'auto',editable:false" data-cp="=" />
                </div>
            </form>
        </div>
        <table id="tbList" title="授权操作记录 " style="width: 100%">
        </table>

    </div>

</asp:Content>
